/**
 * @desc 常用正则表达式
 * */

//手机号正则
export const phoneReg = /^(13[0-9]|14[01456879]|15[0-3,5-9]|16[2567]|17[0-8]|18[0-9]|19[0-3,5-9])\d{8}$/;

//邮箱正则
export const emilReg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/;

//身份证正则
export const idCardReg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/;

//密码正则
export const passwordReg = /^[A-Za-z0-9]{6,20}$/;

// //特殊字符
// export const filtering = /^[\u4E00-\u9FA5A-Za-z0-9_]+$/;
export const filtering = /^(?!.*(\&|\%|\+))/
export const urlReg = /(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?/ig

//特殊字符过滤
// export const filteringNew = /^[\u4E00-\u9FA5A-Za-z0-9_]|([`~!@#$^*_\-=<>?"{}|\/;'\\[\]·~！@#￥……*（）——\-={}|《》？：“”【】、；‘'，。、])|[\u4E00-\u9FA5A-Za-z0-9_]+$/;


